package com.wu.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wu.entity.sys.SUserRoleDo;
import com.wu.pojo.response.sys.RoleUserListResponse;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 用户角色表(SUserRoleDo)表数据库访问层
 *
 * @author
 * @since 2020-12-29 13:20:33
 */
public interface SUserRoleMapper extends BaseMapper<SUserRoleDo> {

    /**
     * 通过ID查询单条数据
     *
     * @param id 主键
     * @return 实例对象
     */
    SUserRoleDo queryById(Long id);

    List<RoleUserListResponse> getUsersByRoleId(@Param("roleId") Long roleId);


}